$local:scriptDirPath = Split-Path $local:MyInvocation.MyCommand.Path
$local:xpiPath = Join-Path $scriptDirPath bats.xpi;

if (Test-Path $xpiPath) {
    Remove-Item $xpiPath;
}

$local:extensionPath = Join-Path $scriptDirPath extension;
& 'C:\Program Files\7-Zip\7z.exe' a -tzip -r bats.xpi "$extensionPath\*";
